#!/usr/bin/perl
$root_folder="/root/switch_project";

#input traffic file for netFPGA
$inpcap="$root_folder/traffic/nf2_dag1.pcap"; #input pcap file
$inpcap_dag2="$root_folder/traffic/nf4_to_dag2_2.pcap"; #input pcap file for 2nd dag

#disable broadcast by sending two way frames with specified src and dst MAC
system("packet_generator.pl -q1 $inpcap");
system("packet_generator.pl -q3 $inpcap_dag2");
system("dagflood -f $root_folder/traffic/dag1_nf2 -d dag0 -c 10");
